package com.itheima.reggie.service;

import com.itheima.reggie.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    // 添加购物车
    ShoppingCart add(ShoppingCart shoppingCart);

    // 查看用户的购物车
    List<ShoppingCart> list(Long userId);

    // 根据userId删除购物车
    void clean(Long userId);

}
